﻿<%@ Page Title="" Language="C#" AutoEventWireup="true" CodeBehind="Group.aspx.cs"
    Inherits="CNdotnet.Ezsocio.Web.Views.Friend.Group" %>

<asp:content id="Content2" contentplaceholderid="head" runat="server">
 <script type="text/javascript" src="/Content/jquery.json-1.2.js"></script>
 <script type="text/javascript" src="/Content/ui.js"></script>
 <script type="text/javascript" src="/Content/group.js"></script> 
</asp:content>
<asp:content id="Content1" contentplaceholderid="MainContent" runat="server">
<h2><img src='/Themes/Standard/Images/ico_hy.gif' align="middle"/>好友管理</h2>
<br />
<table width="95%" cellpadding="5" style="margin:10px;">
<tr><td style="padding-top:5px;padding-bottom:5px;"><a href='javascript:void(0);' id='allGroup'/>全部分组</a></td>
<td>  <div class='modalMessage'>好友名称关键字：<input id="kw" type="text" /><a href='javascript:void(0);' id='findBtn'><img src='/Themes/Standard/Images/search.gif'  alt="搜索"  style="cursor:pointer;" align="middle"/></a></div></td></tr>
  <tr>
        <td width="125px" valign="top">
            <img src='/Content/Images/loading.gif' id='loadGroupImg' style="display:none" /> 
             <ul id='groupContainer'>
             </ul>
             <ul><li><a href='javascript:void(0)' id='addGroupBtn'><img src='/Themes/Standard/Images/add.gif' align="middle"/>添加分组</a> </li></ul>
        </td>
        <td valign="top" style="padding-top:10px;">
             <div id='msg'>您的全部好友如下：</div> 
            <img src='/Content/Images/loading.gif' id='loadFriendImg' style="display:none" /> 
            <table id='friendList' cellpadding="5" style="padding-top:10px; margin-top:15px; display:none;">              
            </table>
        </td>
  </tr>
</table>
<div id='agfContainer' style="display:none;" title='添加好友分组'>
<form id='addGroupFrm' method="POST" action="<%= Html.AttributeEncode(Url.Action("AddGroup")) %>">
  <div>分组名称:<%=Html.TextBox("newGroupName")%> 
   <%= Html.SubmitButton("AddGroup", "添加分组")%></div>
</form>
</div>
<!--updata group setting-->
<div id='editGroupContainer' style="display:none;" title='修改好友分组'>
<form id='editGroupFrm' method="POST" action="<%= Html.AttributeEncode(Url.Action("UpdateGroup")) %>">
  <input type="hidden" id="groupID" name="groupID" />
  <div>分组名称:<%=Html.TextBox("editGroupName")%> 
   <%= Html.SubmitButton("UpdateGroup", "修改分组")%></div>
</form>
</div>

<div id='delFriend'  style="display:none;" title='删除好友'>
   <form id='dfFrm' method="post" action="<%= Html.AttributeEncode(Url.Action("DeleteFriend")) %>">
    <input type="hidden" id="friendID" name="friendID" />
    <table>
        <tr>
             <td><img src='/Themes/Standard/Images/50_0_0.gif'/></td>
             <td style="padding:10px;" id='delContent'></td>
        </tr>
     </table>
     <hr />
     <div style="text-align:right;padding:5px;">  <%= Html.SubmitButton("DeleFriend", "删除")%> &nbsp;<%= Html.SubmitButton("cacelDel", "取消")%></div>
</form>
</div>

<div id='eidtFriendContainer' style="display:none;" title='好友属性'>
<form id='editFriendFrm' method="post" action="<%= Html.AttributeEncode(Url.Action("UpdateFriendGroup")) %>"> 
     <div id='tip' class='modalMessage'></div>
     <div style="height:100px;overflow:auto;">
     <table id='groupSelector' style="padding:5px;"></table></div>
     <div style="text-align:right;padding:5px;">  <%= Html.SubmitButton("UpdateFriendGroup", "修改")%> &nbsp;<%= Html.SubmitButton("cacelUpdateFriend", "取消")%></div>
</form>
</div>
</asp:content>
